home *** CD-ROM | disk | FTP | other *** search
- " ----------------------------------------------------------"
- " Added getByteArray: methodString method on 09/26/1998. "
- " Added basicNew & basicNew: on 08/20/2000. "
- "-----------------------------------------------------------"
-
- Class Class
- [
- edit
- <primitive 150 self>
- |
- list
- <primitive 157 self>
- |
- basicNew ! superclass newinstance !
-
- superclass <- <primitive 151 self>. "151 <= findSuperClass"
-
- <primitive 3 superclass> "respondsToNew: superclass"
- ifTrue: [newinstance <- superclass new].
-
- newinstance <- <primitive 153 self newinstance>. "153 <= classNew"
-
- " The space after the '#new' string is needed by the parser in order"
- " to find the terminating '>' of the primitive!"
-
- <primitive 155 self #new > "respondsTo: #new??"
- ifTrue: [newinstance <- newinstance new].
-
- ^ newinstance
- |
- new
- ^ (self basicNew)
- |
- basicNew: aValue ! superclass newinstance !
-
- superclass <- <primitive 151 self>. "151 <= findSuperClass"
-
- <primitive 3 superclass> "respondsToNew: superclass"
- ifTrue: [newinstance <- superclass new].
-
- newinstance <- <primitive 153 self newinstance>. "153 <= classNew"
-
- " The space after the '#new:' string is needed by the parser in order"
- " to find the terminating '>' of the primitive!"
-
- <primitive 155 self #new: > "respondsTo: #new??"
- ifTrue: [newinstance <- newinstance new: aValue].
-
- ^ newinstance
- |
- new: aValue
- ^ (self basicNew: aValue)
- |
- printString
- ^ <primitive 152 self >
- |
- respondsTo
- <primitive 154 self>
- |
- respondsTo: aSymbol ! aClass !
- aClass <- self.
-
- [aClass notNil]
- whileTrue:
- [ <primitive 155 aClass aSymbol>
- ifTrue: [ ^ true ].
-
- aClass <- aClass superClass
- ].
-
- ^ false
- |
- superClass
- ^ <primitive 151 self>
- |
- variables
- ^ <primitive 158 self>
- |
- view
- <primitive 156 self>
- |
- getByteArray: methodString
- ^ <primitive 159 self methodString> "159 was an unused primitive."
- ]
-